package org.wk.affiliate.domain;

import org.hibernate.annotations.GenericGenerator;
import org.wk.core.db.domain.BaseEntity;

import javax.persistence.*;

/**
 * @className Notify
 * @description 通知entity
 * @author ZhaoPing'an
 * @date 2018/7/9 15:44
 */
@Entity(name = "org.wk.affiliate.domain.Notify")
@Table(name = "j_notify")
public class Notify extends BaseEntity {

    /**
     * @Fields serialVersionUID: long
     * @Desc TODO:
     */
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "id", unique = true, nullable = false, length = 32)
    @GeneratedValue(generator="system-uuid")
    @GenericGenerator(name="system-uuid",strategy = "uuid")
    private String id;
    /**
     * @Fields notifyTitle: String
     * @Desc 通知标题
     */
    @Column
    private String notifyTitle;
    /**
     * @Fields notifyContent: String
     * @Desc  通知内容
     */
    @Column
    private String notifyContent;
    /**
     * @Fields allUserFlag: boolean
     * @Desc 是否为所有用户
     */
    @Column
    private boolean allUserFlag;
    /**
     * @Fields targetUsers:String
     * @Desc 目标用户ID
     */
    @Column
    private String targetUsers;

    public String getId() {
        return id;
    }

    public String getNotifyTitle() {
        return notifyTitle;
    }

    public String getNotifyContent() {
        return notifyContent;
    }

    public boolean isAllUserFlag() {
        return allUserFlag;
    }

    public String getTargetUsers() {
        return targetUsers;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setNotifyTitle(String notifyTitle) {
        this.notifyTitle = notifyTitle;
    }

    public void setNotifyContent(String notifyContent) {
        this.notifyContent = notifyContent;
    }

    public void setAllUserFlag(boolean allUserFlag) {
        this.allUserFlag = allUserFlag;
    }

    public void setTargetUsers(String targetUsers) {
        this.targetUsers = targetUsers;
    }
}
